package ao

import (
	"context"
	pb "gitee.com/micro-services/protocol/room/api"
	"micro.room.client/integration"
)

func CreateRoomDevice(ctx context.Context, r *pb.APICreateRoomDeviceReq) (*pb.APICreateRoomDeviceRsp, error) {
	return integration.CreateRoomDevice(ctx, r)
}

func UpdateRoomDeviceInfo(ctx context.Context, r *pb.APIUpdateRoomDeviceInfoReq) (*pb.APIUpdateRoomInfoRsp, error) {
	return integration.UpdateRoomDeviceInfo(ctx, r)
}

func DeleteRoomDevice(ctx context.Context, r *pb.APIDeleteRoomDeviceReq) (*pb.APIDeleteRoomDeviceRsp, error) {
	return integration.DeleteRoomDevice(ctx, r)
}

func SearchRoomDevice(ctx context.Context, r *pb.APISearchRoomDeviceReq) (*pb.APISearchRoomDeviceRsp, error) {
	return integration.SearchRoomDevice(ctx, r)
}

func DeviceList(ctx context.Context, r *pb.APIDeviceListReq) (*pb.APIDeviceListRsp, error) {
	return integration.DeviceList(ctx, r)
}
